<?php
// *nix style (note capital 'S')
define('SMARTY_DIR', 'cms/template/engine/');

require_once(SMARTY_DIR . 'Smarty.class.php');

include ('cms/template/standard/kolommen.php');
$acp_link = cFunctions::getIncludeContents ('cms/template/standard/acp_link.php');
$full_menu = cFunctions::getIncludeContents ('cms/template/standard/full_menu.php');
$loggedin = cFunctions::getIncludeContents ('cms/template/standard/loggedin.php');
$loggedin_nobr = cFunctions::getIncludeContents ('cms/template/standard/loggedin_nobr.php');
$linkerkolom = getKolom('l');
$rechterkolom = getKolom('r');
$onderkolom = getKolom('o');

/**
 * Class that extends smarty-class for easy using of
 * smarty.
 */
class Smarty_XanlandCMS extends Smarty
{
	/**
	 * Initializer for setting all options
	 *
	 * @global mixed $acp_link
	 * @global mixed $full_menu
	 * @global mixed $loggedin
	 * @global mixed $loggedin_nobr
	 * @global mixed $linkerkolom
	 * @global mixed $rechterkolom
	 * @global mixed $onderkolom
	 */
	function Smarty_XanlandCMS()
	{
		global $acp_link, $full_menu, $loggedin, $loggedin_nobr, $linkerkolom, $rechterkolom, $onderkolom;

		$this->Smarty();

		$this->template_dir = 'public/layouts/';
		$this->compile_dir  = 'cms/template/templates_c/';
		$this->config_dir   = 'cms/template/configs/';
		$this->cache_dir    = 'cms/template/cache/';
		$this->debugging	= false;
		$this->debug_tpl	= '../debug.tpl';
		$this->assign		  ('acp_link',		$acp_link);
		$this->assign		  ('full_menu',	$full_menu);
		$this->assign		  ('loggedin',		$loggedin);
		$this->assign		  ('loggedin_nobr',	$loggedin_nobr);
		$this->assign		  ('linkerKolom',	$linkerkolom);
		$this->assign		  ('rechterKolom',	$rechterkolom);
		$this->assign		  ('onderKolom',	$onderkolom);
	}
}
?>
